package day13;

import java.io.*;
import java.net.Socket;

public
class Client {
    public static
    void main(String[] args) throws IOException {
        Socket client=new Socket("192.168.26.25",60000);
        //创建输入输出流
        InputStream is=client.getInputStream();
        OutputStream os=client.getOutputStream();
        //将字节转字符加缓冲流 readLine()
        BufferedReader br=new BufferedReader(new InputStreamReader(is));
        String msg=br.readLine();
        System.out.println("服务端数据："+msg);
        os.write("你好，我是zmjjkk\n".getBytes());
    }
}
